home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
math
/
nrpas13
/
rank.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-04-29
|
298b
|
13 lines
PROCEDURE rank(n: integer; indx: gliarray; VAR irank: gliarray);
(* Programs using routine RANK must define type
TYPE
gliarray = ARRAY [1..np] OF real;
in the main routine, with np >= n. *)
VAR
j: integer;
BEGIN
FOR j := 1 TO n DO BEGIN
irank[indx[j]] := j
END
END;